<?php
class ZheCommand extends CConsoleCommand 
{
	public function actionStart()
	{
		// 折800URL地址
		foreach (Zhe::$url as $cateId => $url) {
			Zhe::runToBackground('updateZheGoods', $cateId, $url);
		}
	}

	public function actionUpdateZheGoods($cateId, $url)
	{
		// 折800对象
		$zhe = new Zhe();
		$zhe->updateZheGoods($cateId, $url);
	}

}
